//
//  NoticeTableViewCell.m
//  SZBank
//
//  Created by rimi on 16/7/11.
//  Copyright © 2016年 LuoYao. All rights reserved.
//

#import "NoticeTableViewCell.h"

@implementation NoticeTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addSubview:self.noticeImage];
        [self addSubview:self.noticeTitle];
    }
    return self;
}

- (UIImageView *)noticeImage{
    if (!_noticeImage) {
        _noticeImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, KWIDTH * 0.84, KHEIGHT * 0.06)];
    }
    return _noticeImage;
}

- (UILabel *)noticeTitle{
    if (!_noticeTitle) {
        _noticeTitle = [[UILabel alloc] initWithFrame:CGRectMake(KWIDTH/5, 0, KWIDTH * 0.4, KHEIGHT * 0.06)];
        _noticeTitle.textAlignment = NSTextAlignmentCenter;
        _noticeTitle.font = [UIFont systemFontOfSize:22];
    }
    return _noticeTitle;
}
@end
